/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.squela
package sql

trait BoundTableOperations[Entity <: AnyRef] extends TableOperations[Entity] {
  def bindings: Bindings
  private[this] lazy val operator = using(bindings)

  def select(key: Any, fields: SqlField[_]*) = operator.select(key, fields:_*)
  def insert(obj: Entity) = operator.insert(obj)
  def update(obj: Entity, fields: SqlField[_]*) = operator.update(obj, fields:_*)
  def delete(obj: Entity) = operator.delete(obj)
  def delete() = operator.delete()
}
